fast maths calculation